﻿using System.ComponentModel.DataAnnotations.Schema;
using ZhiJiao.Models.Entities.Enums;

namespace ZhiJiao.Models.Entities
{
    /// <summary>
    /// 免费测评参与规则
    /// 参与规则
    /// </summary>
    public class Rule : BaseEntity
    {
        public string Name { get; set; }

        public RuleType RuleType { get; set; }

        /// <summary>
        /// 会员等级
        /// 能参与的最低会员等级
        /// </summary>
        public MemberLevel? MemberLevel { get; set; }

        /// <summary>
        /// 微信分享数量
        /// </summary>
        public int? WXShareCount { get; set; }

        /// <summary>
        /// 抖音分享数量
        /// </summary>
        public int? DYShareCount { get; set; }

        /// <summary>
        /// 所属机构
        /// </summary>
        public Instruction Instruction { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool IsActive { get; set; } = false;


        /// <summary>
        /// 规则下的测评集合
        /// </summary>
        public List<Evaluation>? Evaluations { get; set; }

        /// <summary>
        /// 规则下的课程集合
        /// </summary>
        public List<Course>? Courses { get; set; }
    }
}
